<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://www.hx.com/tags" prefix="hx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试授权</title>
<hx:ajax jquery="true"/>
<script type="text/javascript">
	function test(){
		$.ajax({  
		       type:'post',      
		       url:"http://127.0.0.1/test/testAction.action",  
		       data:"data",  
		       cache:false,  
		       dataType:'json',  
		       success:function(result){ 
		       		alert(result.id); 
		       }  
		    });  
	} 

</script>
</head>
<body>

 <button onclick="test();">测试</button>
 ${user.id }
</body>
</html>